﻿using JTZY.Infrastructure.Enums;
using JTZY.Repository;

namespace JTZY.ServiceCore
{
    /// <summary>
    /// 基础服务定义
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class BaseService<T> : BaseRepository<T> where T : class, new()
    {
        protected bool IsBetween0And9AM()
        {
            TimeSpan now = DateTime.Now.TimeOfDay;
            return now > TimeSpan.Zero && now < new TimeSpan(8, 0, 0);
        }
    }
}
